class CatalogZh < ActiveRecord::Base
  validates_uniqueness_of :name
  validates_length_of :name, :within => 1..50, :allow_nil=>false
  validates_numericality_of :req, :allow_nil=>false 
  
  has_many :item_zhs, :order=>"req"
  
end
